.dateFlipBox {
  text-align: center;
  padding-top: 100px;

  .flip {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 100px;
    line-height: 100px;
    border: solid 1px #000;
    border-radius: 10px;
    background: #fff;
    font-size: 66px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: 'Helvetica Neue';
    margin-right: 10px;
    .digital::after,
    .digital::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      background: #000;
      overflow: hidden;
      box-sizing: border-box;
      // color: #fff;
    }

    .digital::before {
      top: 0;
      bottom: 50%;
      border-radius: 11px 11px 0 0;
      border-bottom: solid 2px #666;
    }
    .digital::after {
      top: 50%;
      bottom: 0;
      border-radius: 0 0 11px 11px;
      line-height: 0;
    }
    .front::before {
      z-index: 3;
    }
    .back::after {
      z-index: 2;
      transform-origin: 50% 0%;
      transform: perspective(160px) rotateX(180deg);
    }

    .down,
    .front::after,
    .back::before {
      z-index: 1;
    }
    .down {
      z-index: 1;
    }

    .down,
    .go,
    .front::before {
      transform-origin: 50% 100%;
      animation: frontFlipDown 0.6s ease-in-out both;
      box-shadow: 0 -2px 6px rgba(255, 255, 255, 0.3);
      backface-visibility: hidden; //元素的背面是否可见
    }

    .down,
    .go,
    .back::after {
      animation: backFlipDown 0.6s ease-in-out both;
    }

    @keyframes frontFlipDown {
      0% {
        transform: perspective(160px) rotateX(0deg);
      }

      100% {
        transform: perspective(160px) rotateX(-180deg);
      }
    }

    @keyframes backFlipDown {
      0% {
        transform: perspective(160px) rotateX(180deg);
      }

      100% {
        transform: perspective(160px) rotateX(0deg);
      }
    }

    .number0::after,
    .number0::before {
      content: '0';
    }

    .number1::after,
    .number1::before {
      content: '1';
    }
    .number2::after,
    .number2::before {
      content: '2';
    }
    .number3::after,
    .number3::before {
      content: '3';
    }
    .number4::after,
    .number4::before {
      content: '4';
    }
    .number5::after,
    .number5::before {
      content: '5';
    }
    .number6::after,
    .number6::before {
      content: '6';
    }
    .number7::after,
    .number7::before {
      content: '7';
    }
    .number8::after,
    .number8::before {
      content: '8';
    }
    .number9::after,
    .number9::before {
      content: '9';
    }
  }

  em {
    display: inline-block;
    line-height: 102px;
    font-size: 66px;
    font-style: normal;
    vertical-align: top;
    margin-right: 10px;
  }
  .dateStr {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-family: 'Helvetica Neue';
    :nth-child(1) {
      margin-right: 10px;
    }
  }
}
